import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.*;

class ScheduleManager {
    private List<Schedule> schedules = new ArrayList<>();
    public void addSchedule(Schedule s) { schedules.add(s); }
    public void listSchedules() { for (Schedule s : schedules) System.out.println(s); }
    public Schedule findById(int id) {
        for (Schedule s : schedules) if (s.getId() == id) return s;
        return null;
    }
}